﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModels.Entities
{
    /// <summary>
    /// 继承
    /// </summary>
    public class ParentEntity
    {
        public int Id { get; set; }
        public string EntityType { get; set; }
        public string ParentText { get; set; }
    }

    public class SonEntity1 : ParentEntity
    {
        public string SonText1 { get; set; }
    }

    public class SonEntity2 : ParentEntity
    {
        public string SonText2 { get; set; }
    }

    public class GrandsonEntity1_1 : SonEntity1
    {
        public double GrandsonNumber { get; set; }
    }

    public class GrandsonEntity1_2 : SonEntity1
    {
        public double GrandsonNumber { get; set; }
    }

    public class NoBaseEntity : ParentEntity
    {
        public string NoBaseText { get; set; }
    }

}
